package com.course.component.util;
/*
@author By 林中小鸟
@package  com.self.introduction.component.util
@create 2021 - 11 - 2021\11\23 0023
@QQ: 357182695
@Em: themooncss@gmail.com
*/

import java.io.Serializable;

public class RequestContext implements Serializable {

    private static ThreadLocal<String> remoteAddr = new ThreadLocal<>();

    public static String getRemoteAddr() {
        return remoteAddr.get();
    }

    public static void setRemoteAddr(String remoteAddr) {
        RequestContext.remoteAddr.set(remoteAddr);
    }
}
